package com.doge;

import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;

public class DavidButton extends Actor{
	
	TextureRegion tex;
	Main parent;
	SpriteBatch batch;
	
	//properties of button. set them in class creating this
	public String msg;
	public int width;
	public int height;
	public float x;
	public float y;
	
	/**
	 * javadoc comment #swag
	 */
	BitmapFont font;
	
	
	/** THE David Button. DEVELOPED BY: DAVID YADEN
	 *  Designed by: DOGE.
	 *  \m/ #keepitreal
	 * 
	 */
	public DavidButton(Main parent, SpriteBatch batch){
		this.parent = parent;
		this.batch = batch;
		tex = parent.textures.button;
		font = new BitmapFont();
	}
	
	/**
	 * wow no parameters, easy to call, such amaze. I can't continue doing this...
	 */
	public void draw(){
		batch.begin();
		batch.draw(tex, x,y,width,height);
		font.draw(batch, msg, x, y);
	}
	
}
